import Vue from 'vue'
import Router from 'vue-router'
import HomePage from '../components/HomePage.vue'
import OverView from '../view/OverView.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '',
      required: false, // 是否需要登录
      component: HomePage,
      children: [
        {
          path: '',
          name: '首页',
          required: false,
          component: OverView
        }
      ]
    }
  ]
})
